package DataStructure.linear;

import DataStructure.linear.Queue;

import java.util.Iterator;

public class QueueTest {
    public static void main(String[] args) {
        Queue<String> qe=new Queue();
        Iterator<String> iterator = qe.iterator();

        qe.enqueue("我爱你");
        qe.enqueue("柳淇");
        qe.enqueue("琪琪");
        qe.enqueue("日你妈");

        boolean empty = qe.isEmpty();
        for (String s : qe) {
            System.out.println(s);
        }
        System.out.println("--------------------------------");
        String pop = qe.dequeue();
        System.out.println(pop);
        System.out.println("剩余个数:"+qe.size());

    }
}
